<ul>
	<li>
	<?php if(isset($category->metas['image'])): ?>
		<img src="<?php echo site_url($category->metas['image']->meta_value); ?>" width="90"/> 	
	<?php endif;?>
	
	<?php echo anchor("category/{$category->url_name}", $category->name); ?> (<?php echo $category->num_all_nodes; ?>)
	

	<?php if(isset($category->categories) && count($category->categories)>0):?>	
		
		<?php foreach($category->categories as $child_category): ?>
		
			<?php $this->template->load("pages/category/list_all_category_details", array("category" => $child_category)); ?>
		
		<?php endforeach; ?>
			
	<?php endif;?>
	</li>
	
</ul>